package com.wzx.ptplatform.utils;

import java.util.List;

/**
 * @author 紫煦桉
 */
public class LayuiUtils {

    public static <T> LayuiPager<T> initPager(Integer page, Integer limit) {
        return new LayuiPager<>(page, limit);
    }

    public static <T> void setPager(LayuiPager<T> layuiPager , List<T> list, Integer count) {
        layuiPager.setData(list);
        layuiPager.setCount(count);
        layuiPager.setCode(0);
        layuiPager.setMsg("ok");
    }
}
